package org.rednebula.framework.core.model.form;

import org.rednebula.framework.core.IEnvironment;
import org.rednebula.framework.core.model.RequestType;
import org.rednebula.framework.core.model.domain.IModel;
import org.rednebula.framework.core.service.IAssembleService;
import org.rednebula.framework.core.service.IHandlerService;


public interface IForm {
	 
	 String getVersion();
	 
	 RequestType getRequestType(); //当前请求操作的类型 
	 
	 IModel getRootModel();

	 IAssembleService getAssembleService();
	 
	 IHandlerService getHandlerService();
	 
	 IModel handle(IEnvironment env);
	 
	 <T> T getTemporayData(Object key);
	 
	 void clearTemporaryData();
}
